<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">

<title>Table of Contents - net-smtp: Ruby Standard Library Documentation</title>


<script src="./js/navigation.js" defer></script>
<script src="./js/search.js" defer></script>
<script src="./js/search_index.js" defer></script>
<script src="./js/searcher.js" defer></script>
<script src="./js/darkfish.js" defer></script>

<script src="./js/jquery-3.2.0.min.js"></script>

<script src="./js/vue.min.js"></script>
<script src="./js/js.cookie.min.js"></script>

<link href="./css/fonts.css" rel="stylesheet">
<link id='rdoccss' href="./css/rdoc.css" rel="stylesheet">
<link href="./css/carbon17.css" rel="stylesheet">

<script type="text/javascript">
  var rdoc_rel_prefix = "./";
  var index_rel_prefix = "./";
  var darkModeCsseHref = "./css/rdoc-dm.css"
  var defaultModeCssHref = "./css/rdoc.css"
  // var cssDarkmode = Cookies.get('darkmode');
  
  if( Cookies.get("darkmode") == "true") {
	$('#rdoccss').attr("href", darkModeCsseHref);
}

//  https://cssdeck.com/blog/simple-jquery-stylesheet-switcher/

document.write('<style type="text/css">body{display:none}</style>');

</script>


</head>
<body id="top" class="table-of-contents">
  <!-- table_of_contents.html -->
  <div id='actionbar' >
    <div class='wrapper mdiv'>
      <ul class='grids g0'></ul>
    </div> 
    <!-- VERSION HEADER for 3.3.0.preview2 NOT FOUND -->
  </div> <!-- end action bar -->

  <div class='wrapper hdiv'>

    

    <div id='extraz'><div class='adzbox-index'  >
        
      </div>         
    </div>

    <main role="main">
    <h1 class="class">Table of Contents - net-smtp: Ruby Standard Library Documentation</h1>


          <h2 id="classes">Classes and Modules</h2>
          <ul>
              <li class="module">
                <a href="Net.html">Net</a>
                  </li>
              <li class="class">
                <a href="Net/SMTP.html">Net::SMTP</a>

                <ul>
                    <li><a href="Net/SMTP.html#label-What+is+This+Library-3F">What is This Library?</a>
                    <li><a href="Net/SMTP.html#label-What+is+This+Library+NOT-3F">What is This Library NOT?</a>
                    <li><a href="Net/SMTP.html#label-Examples">Examples</a>
                    <li><a href="Net/SMTP.html#label-Sending+Messages">Sending Messages</a>
                    <li><a href="Net/SMTP.html#label-Closing+the+Session">Closing the Session</a>
                    <li><a href="Net/SMTP.html#label-HELO+domain">HELO domain</a>
                    <li><a href="Net/SMTP.html#label-SMTP+Authentication">SMTP Authentication</a>
                    </ul>
                  </li>
              <li class="class">
                <a href="Net/SMTP/Address.html">Net::SMTP::Address</a>
                  </li>
              <li class="class">
                <a href="Net/SMTP/Response.html">Net::SMTP::Response</a>
                  </li>
              <li class="class">
                <a href="Net/SMTPAuthenticationError.html">Net::SMTPAuthenticationError</a>
                  </li>
              <li class="module">
                <a href="Net/SMTPError.html">Net::SMTPError</a>
                  </li>
              <li class="class">
                <a href="Net/SMTPFatalError.html">Net::SMTPFatalError</a>
                  </li>
              <li class="class">
                <a href="Net/SMTPServerBusy.html">Net::SMTPServerBusy</a>
                  </li>
              <li class="class">
                <a href="Net/SMTPSyntaxError.html">Net::SMTPSyntaxError</a>
                  </li>
              <li class="class">
                <a href="Net/SMTPUnknownError.html">Net::SMTPUnknownError</a>
                  </li>
              <li class="class">
                <a href="Net/SMTPUnsupportedCommand.html">Net::SMTPUnsupportedCommand</a>
                  </li>
                </ul>

                <h2 id="methods">Methods</h2>
                <ul>

                    <li class="method">
                      <a href="Net/SMTP.html#method-c-default_port">::default_port</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-c-default_ssl_context">::default_ssl_context</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-c-default_ssl_port">::default_ssl_port</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-c-default_submission_port">::default_submission_port</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-c-default_tls_port">::default_tls_port</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP/Response.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">Net::SMTP::Response</span>

                    <li class="method">
                      <a href="Net/SMTP/Address.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">Net::SMTP::Address</span>

                    <li class="method">
                      <a href="Net/SMTPError.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">Net::SMTPError</span>

                    <li class="method">
                      <a href="Net/SMTP/Response.html#method-c-parse">::parse</a>
                      &mdash;
                      <span class="container">Net::SMTP::Response</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-c-start">::start</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-auth_capable-3F">#auth_capable?</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-auth_cram_md5">#auth_cram_md5</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-auth_login">#auth_login</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-auth_method">#auth_method</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-auth_plain">#auth_plain</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-authenticate">#authenticate</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-base64_encode">#base64_encode</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP/Response.html#method-i-capabilities">#capabilities</a>
                      &mdash;
                      <span class="container">Net::SMTP::Response</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-capable-3F">#capable?</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-capable_auth_types">#capable_auth_types</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-capable_cram_md5_auth-3F">#capable_cram_md5_auth?</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-capable_login_auth-3F">#capable_login_auth?</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-capable_plain_auth-3F">#capable_plain_auth?</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-capable_starttls-3F">#capable_starttls?</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-check_auth_args">#check_auth_args</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-check_auth_continue">#check_auth_continue</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-check_auth_method">#check_auth_method</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-check_auth_response">#check_auth_response</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-check_continue">#check_continue</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-check_response">#check_response</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP/Response.html#method-i-continue-3F">#continue?</a>
                      &mdash;
                      <span class="container">Net::SMTP::Response</span>

                    <li class="method">
                      <a href="Net/SMTP/Response.html#method-i-cram_md5_challenge">#cram_md5_challenge</a>
                      &mdash;
                      <span class="container">Net::SMTP::Response</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-cram_md5_response">#cram_md5_response</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-cram_secret">#cram_secret</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-critical">#critical</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-data">#data</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-debug_output-3D">#debug_output=</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-digest_class">#digest_class</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-disable_ssl">#disable_ssl</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-disable_starttls">#disable_starttls</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-disable_tls">#disable_tls</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-do_finish">#do_finish</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-do_helo">#do_helo</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-do_start">#do_start</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-ehlo">#ehlo</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-enable_ssl">#enable_ssl</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-enable_starttls">#enable_starttls</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-enable_starttls_auto">#enable_starttls_auto</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-enable_tls">#enable_tls</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP/Response.html#method-i-exception_class">#exception_class</a>
                      &mdash;
                      <span class="container">Net::SMTP::Response</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-finish">#finish</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-get_response">#get_response</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-getok">#getok</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-helo">#helo</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-inspect">#inspect</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-logging">#logging</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-mailfrom">#mailfrom</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP/Response.html#method-i-message">#message</a>
                      &mdash;
                      <span class="container">Net::SMTP::Response</span>

                    <li class="method">
                      <a href="Net/SMTPError.html#method-i-message">#message</a>
                      &mdash;
                      <span class="container">Net::SMTPError</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-new_internet_message_io">#new_internet_message_io</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-open_message_stream">#open_message_stream</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-quit">#quit</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-rcptto">#rcptto</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-rcptto_list">#rcptto_list</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-read_timeout-3D">#read_timeout=</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-ready">#ready</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-recv_response">#recv_response</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-rset">#rset</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-send_mail">#send_mail</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-send_message">#send_message</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-sendmail">#sendmail</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-set_debug_output">#set_debug_output</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-ssl-3F">#ssl?</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-ssl_socket">#ssl_socket</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-start">#start</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-started-3F">#started?</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-starttls">#starttls</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-starttls-3F">#starttls?</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-starttls_always-3F">#starttls_always?</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-starttls_auto-3F">#starttls_auto?</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP/Response.html#method-i-status_type_char">#status_type_char</a>
                      &mdash;
                      <span class="container">Net::SMTP::Response</span>

                    <li class="method">
                      <a href="Net/SMTP/Response.html#method-i-success-3F">#success?</a>
                      &mdash;
                      <span class="container">Net::SMTP::Response</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-tcp_socket">#tcp_socket</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-tls-3F">#tls?</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-tlsconnect">#tlsconnect</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>

                    <li class="method">
                      <a href="Net/SMTP/Address.html#method-i-to_s">#to_s</a>
                      &mdash;
                      <span class="container">Net::SMTP::Address</span>

                    <li class="method">
                      <a href="Net/SMTP.html#method-i-validate_line">#validate_line</a>
                      &mdash;
                      <span class="container">Net::SMTP</span>
                    </ul>
                    </main>
                  </div> 

<footer id="validator-badges" role="contentinfo">
<p><a href="https://validator.w3.org/check/referer">Validate</a></p>
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.</p>
<p>Based on <a href="https://github.com/ged/darkfish/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.</p>

  
    <p><p><a href="https://ruby-doc.org">Ruby-doc.org</a> is provided by <a href="https://jamesbritt.com">James Britt</a> and <a href="https://neurogami.com">Neurogami</a>. </p><p><a href="https://jamesbritt.bandcamp.com/">Hack your world.  Feed your head.  Live curious</a>.</p>
</p>
  
  </footer>

<script type="text/javascript">


  let ads  = $("#carbonads-container").children().detach();


  function swapMode() {
    var cookieName = 'darkmode';
    var cssDarkmode = Cookies.get(cookieName);
    console.log("***** swapMode! " + cssDarkmode + " *****");


    if (cssDarkmode == "true") {
      console.log("We have dark mode, set the css to light ...");
      $('#rdoccss').attr("href", defaultModeCssHref);
      $('#cssSelect').text("Dark mode");
      cssDarkmode = "false";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    } else {
      console.log("We not have dark mode, set the css to dark ...");
      $('#rdoccss').attr("href", darkModeCsseHref);
      $('#cssSelect').text("Light mode");
      cssDarkmode = "true";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    }

    console.log("  --------------- ");
  }


const vueCssApp = new Vue({
el: '#menubar',
data: {
isDark: false
},
methods: {
toggleClass: function(event){
this.isDark = !this.isDark;
}
}
})

const vueApp = new Vue({
el: '#vapp',
data: { 
isOpen: true
},

mounted() {
this.handleResize();
this.manage_mob_classes();
window.addEventListener('resize', this.handleResize)
//this.isOpen !=  (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},
destroyed() {
window.removeEventListener('resize', this.handleResize)
},
created() {
//manage_mob_classes();
},

methods : {
isMobile() {
  return (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},

  handleResize() {
    if (!this.isMobile()) {
      this.isOpen = window.innerWidth > 800;
    }
  },

  manage_mob_classes() {
    if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
      $("nav").addClass("mob_nav");
      $("main").addClass("mob_main");
      $("#extraz").addClass("mob_extraz");
      $("#carbonads-container").addClass("mob_carbonads-container");
      this.isOpen  = false;
    } else {
      $("nav").removeClass("mob_nav") 
        $("main").removeClass("mob_main");
      $("#extraz").removeClass("mob_extraz");
      $("#carbonads-container").removeClass("mob_carbonads-container");
      this.isOpen  = true;
    }
  },

  toggleNav() {
    this.isOpen =! this.isOpen ;
    // alert("Toggle nav!");
    console.log("toggleNav() click: " + this.isOpen );
  }
}
})

$("#carbonads-container").append(ads);


$(function() {

    var darkmode = Cookies.get("darkmode");
    console.log("Document ready: " + darkmode);

    if ( darkmode  == "true" ) {
      $('#cssSelect').text("Light mode");
    } else {
      $('#cssSelect').text("Dark mode");
     }

    $('body').css('display','block');
    });

</script>

    
  </body> 
</html>

